package cn.wolfcode.crm.mapper;

import cn.wolfcode.crm.domain.Menu;
import cn.wolfcode.crm.query.QueryObject;

import java.util.List;

public interface MenuMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Menu record);

    Menu selectByPrimaryKey(Long id);

    List<Menu> selectAll();

    List<Menu> selectRootMenu();

    List<Menu> selectChildrenMenu(Long id);

    int updateByPrimaryKey(Menu record);

    int query4Count(QueryObject qo);

    List<Menu> query4List(QueryObject qo);

    Menu getByMenuText(String menuText);

    List<Long> getchildIdById(Long id);

    List<Long> selectByEmployeeId(Long id);
}